# 定义SRC_LIST变量, 包含当前目录下的所有源文件
aux_source_directory(. SRC_LIST)
aux_source_directory(./model MODEL_LIST)
aux_source_directory(./middleware MIDDLE_LIST)
aux_source_directory(./muduo MUDUO_LIST)
# 指定生成可执行文件
add_executable(chat_service ${SRC_LIST} ${MODEL_LIST} ${MIDDLE_LIST} ${MUDUO_LIST})# 指定可执行文件链接时需要的库文件

# find_package(muduo REQUIRED)  # 至少要CMAKE3.5
target_link_libraries(chat_service muduo_net muduo_base mysqlclient pthread hiredis rdkafka++ ssl crypto)